package 装饰者模式.制作咖啡;

/**
 *
 */
public class ChocolateDecorator extends Decorator {


    public ChocolateDecorator(Coffee component) {
        super(component);
    }

    @Override
    public void operator() {
        super.operator();
        add();
    }

    private void add() {
        System.out.println("加一份巧克力");
    }
}
